@can('destroy',$user)
<form action="{{route('users.destroy',$user)}}" method="post">
    {{csrf_field()}}
    {{method_field('DELETE')}}
    <button type="submit">删除</button>
</form>
@endcan
{{$user->name}}
<p>我关注{{$user->followings()->count()}}人</p>
<p>我粉丝{{count($user->followers)}}人</p>
<p>我一共发了{{count($user->blogs)}}微博</p>
{{$user->email}}
@can('follow',$user)
@if(Auth::user()->isFollowing($user))
    <form action="{{route('unfollow',$user)}}" method="post">
        {{csrf_field()}}
        {{method_field('DELETE')}}
        <button type="submit">取消关注</button>
    </form>
@else
    <form action="{{route('follow',$user)}}" method="post">
        {{csrf_field()}}
        <button type="submit">关注</button>
    </form>
@endif
@endcan
